function [generate_wave] = generate_mixed_sine(param_in)
    % generate_mixed_sine - 生成多频率混合正弦波，最大幅度为1
    % 返回:
    %   generate_wave - 混合正弦波信号

    pn = param_in.pn;
    Fs = param_in.raw_fs;
    freqs  = param_in.freqs ;  % 混合频率
    amps   = param_in.amps  ;

    % ==== 时间轴 ====
    t = 0 : 1/Fs : ((pn-1)/Fs);

    % ==== 合成信号 ====
    generate_wave = zeros(size(t));
    for i = 1:length(freqs)
        generate_wave = generate_wave + (amps(i) * cos(2 * pi * freqs(i) * t ));
    end

    % ==== 幅值归一化 ====
    % mixed_signal = mixed_signal / max(abs(mixed_signal));

end

